/* FieldUpdate.java
 * 
 * Alfred Olschnoegger
 * 26.05.2008
 */

package presentation.controller;

import domain.location.Position;
import application.ServerInfoProvider;
import application.parser.Parser;
import application.parser.StringParser;

/**
 * Updates the Field informations of the users
 * 
 * @date 26.05.2008
 * @author Alfred Olschnoegger
 */

public class FieldUpdate extends HttpBaseController {

	/**
	 * processes the field update
	 */
	public void process() {
		application.FieldUpdate fu = new application.FieldUpdate();
		StringParser parse = new StringParser();

		String hunter = m_Arguments.get("username");
		int range = Integer.parseInt(m_Arguments.get("range"));
		int game = Integer.parseInt(m_Arguments.get("game"));
		fu.getUpdate(Integer.parseInt(m_Arguments.get("x")), Integer.parseInt(m_Arguments.get("y")), hunter, range, game, parse);

		m_Request.setAttribute("responseStr",parse.parse());
		redirect();
	}

}

// end of FieldUpdate.java
